# -*- coding: utf-8 -*-
import mod.client.extraClientApi as clientApifrom mod.client.ui.controls.baseUIControl import BaseUIControlfrom mod.client.ui.controls.buttonUIControl import ButtonUIControlfrom mod.client.ui.controls.imageUIControl import ImageUIControlfrom legendaryPowerClientScript.ui.base import buttonComponentfrom legendaryPowerClientScript.ui.base.baseComponent import BaseComponentfrom legendaryPowerClientScript.util import apiUtilclass ToggleComponent(BaseComponent):
            def setLockPitch(self, lockPitch, sync=True):
            def setLockPitch(self, lockPitch, sync=True):
                self.lockPitch = lockPitch
                self.resetCamera()

            toggle = self.getToggle("/cameraSetting/lockPitch/lock_toggle")
            toggle.setBoundText(self.getLabel("/cameraSetting/lockPitch"))
            toggle.toggleCallback = self.setLockPitch
        """
        pass

    def setBoundText(self, labelComponent):
        # type: (Union[str, LabelComponent]) -> None
        """
        设置绑定的文本标签组件。在开关切换时，对应的文本颜色也会变化
        Args:
            labelComponent (Union[str, LabelComponent]): 文本标签组件。
        """
        pass

    def SetTouchEnable(self, enable, setGray=True):
        # type: (bool, bool) -> None
        """
        设置按钮能否被点击。

        Args:
        - enable (bool): 是否能点击
        - setGray (bool): 不能点击的话，是否将其变成灰色。默认True
        """
        pass

    def SetSpriteGray(self, isGray, type="default"):
        # type: (bool) -> None
        """
        将按钮图片变成灰色
        Args:
        - isGray (bool): 是否变成灰色
        """
        pass

    def setOn(self, isOn, callback=False):
        # type: (bool, bool) -> None
        """
        设置开关状态。
        Args:
            isOn (bool): 开关状态。
            callback (bool): 是否调用回调函数。
        """
        pass

